package com.ywl.designpattern.uml.composition;

/**
 * 组合关系(Composition)
 * 整体与部分不可以分开
 */
public class Person {
    private IDCard card; //聚合关系
    private Head head = new Head(); //组合关系

}

class Head {

}

class IDCard {

}